package fudan.se.project.repository.entity.conference.role;

import fudan.se.project.domain.User;
import fudan.se.project.domain.conference.Conference;
import fudan.se.project.domain.conference.role.Chair;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface ChairRepository extends CrudRepository<Chair, Long> {

    Chair findById(long id);

    Chair findByUserAndConference(User user, Conference conference);


}
